package com.maimao.info.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.maimao.model.info.Address;
import com.maimao.model.info.Collect;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author MaoLin Wang
 * @date 2021/1/5 4:34 下午
 */
public interface AddressMapper extends BaseMapper<Address> {

    int updateNotDefault(Long userId);

    int updateDefault(@Param("addressId") Long addressId);

    List<Address> selectByUserId(@Param("userId") Long userId);

    Address selectDefault(@Param("userId") Long userId);
}
